//
//  ExamCollectionQuestionViewController.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/16.
//

#import "BaseViewController.h"
#import "ExamPaperTypeListModel.h"
#import "ExamQuestionModel.h"


NS_ASSUME_NONNULL_BEGIN

@class ExamCollectionQuestionViewController;

@protocol ExamCollectionQuestionViewControllerDelegate <NSObject>

@optional

-(void)pageScroll:(ExamCollectionQuestionViewController*)vc andOptionsModel:(ExamQuestionModel*)questionModel andIndex:(NSInteger)current_index;
-(void)firstRefresh:(ExamCollectionQuestionViewController*)vc andModel:(ExamQuestionModel*)questionModel;

@end


@interface ExamCollectionQuestionViewController : BaseViewController

@property(nonatomic,strong)UICollectionView *collectionView;
@property(nonatomic,copy)NSString *grade;
@property(nonatomic,strong)ExamPaperTypeListModel *typeModel;
@property(nonatomic,assign)NSInteger index;
@property(nonatomic,strong)NSMutableArray *dataArr;
@property (nonatomic, weak)id<ExamCollectionQuestionViewControllerDelegate>delegate;

-(void)refreshData;
-(void)stopHearingPlay;
-(void)refreshWidth;

@end

NS_ASSUME_NONNULL_END
